-- GENERATED SPELL FOR [Unstable Voidwalker] --


function spell0_20145(pUnit, Event) --@Coalesce,Self--
pUnit:FullCastSpellOnTarget(34302,pUnit)
pUnit:RegisterEvent('Sorts_20145', 1500, 1)
end

function spell1_20145(pUnit, Event) --@Shadowstrike,n/a--
pUnit:FullCastSpellOnTarget(33914,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20145', 643, 1)
end

function Sorts_20145(pUnit, Event)
local choix_sorts_20145 = math.random(0, 1)
if choix_sorts_20145 == 0 then
pUnit:RegisterEvent('spell0_20145', 1, 1)
end
if choix_sorts_20145 == 1 then
pUnit:RegisterEvent('spell1_20145', 1, 1)
end
end

function mob20145_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20145', math.random(1500, 3000), 1)
end

function mob20145_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20145_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20145_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20145, 1, 'mob20145_Action')
RegisterUnitEvent(20145, 2, 'mob20145_Leave')
RegisterUnitEvent(20145, 3, 'mob20145_Kill')
RegisterUnitEvent(20145, 4, 'mob20145_Die')
